package com.sandu.product.fragment

import android.os.Bundle
import android.widget.Toast
import com.alibaba.android.arouter.facade.annotation.Route
import com.sandu.lib_common.arouter.ARouterPath
import com.sandu.lib_common.base.BaseDBFragment
import com.sandu.product.databinding.ProductDetailFragmentBinding
import com.sandu.product.viewmodel.ProductViewModel

@Route(path = ARouterPath.PRODUCT_DETAIL)
class ProductDetailFragment : BaseDBFragment<ProductViewModel, ProductDetailFragmentBinding>() {
    override fun initView(savedInstanceState: Bundle?) {
        mDatabind.click = ProxyClick()
    }

    inner class ProxyClick {
        fun clickDetail() {
            Toast.makeText(activity, "click event", Toast.LENGTH_SHORT).show()
        }

    }
}